// mock/data.js
export default [
  {
    url: '/api/right/table',
    method: 'get',
    response: () => (
      {
        code: 200,
        data: [
          {
            id: 1, // 序号
            companyName: 'XXXXXX有限公司', // 企业名称
            deviceName: '环氧乳液生产装置', // 装置名称
            status: '停车中', // 状态
          },
          {
            id: 2,
            companyName: 'XXXXXX有限公司',
            deviceName: 'pvac乳液生产装置',
            status: '停车中',
          },
          {
            id: 3,
            companyName: 'XXXXXX有限公司',
            deviceName: '聚脂乳液生产装置',
            status: '停车中',
          },
          {
            id: 4,
            companyName: 'XXXXXX有限公司',
            deviceName: '抗氧剂生产线',
            status: '停车中',
          },
          {
            id: 5,
            companyName: 'XXXXXX有限公司',
            deviceName: '聚脂乳液生产装置',
            status: '停车中',
          },
        ]
      }
    ),
  },
  {
    url: '/api/left/chartPie',
    method: 'get',
    response: () => ({
      code: 200,
      data: [
        { value: 10, name: '建筑工程' },
        { value: 11, name: '安全设备' },
        { value: 23, name: '险维修' },
        { value: 11, name: '设计' },
        { value: 66, name: '技术服务' },
      ],
    }),
  },
  {
    url: '/api/right/company',
    method: 'get',
    response: () => ({
      code: 200,
      data: [
        [
          {
            id: '01',
            companyName: "XXXXXXXXXXXXXX有限公司",
            members: [
              { label: "值班领导:", name: "李明宇" },
              { label: "电话:", name: "157xxxx5454" },
              { label: "值班人员:", name: "王浩" },
              { label: "电话:", name: "185xxxx6667" }
            ]

          },
          {
            id: '02',
            companyName: "XXXXXXXXXXXXXX有限公司",
            members: [
              { label: "值班领导:", name: "李明宇" },
              { label: "电话:", name: "157xxxx5454" },
              { label: "值班人员:", name: "王浩" },
              { label: "电话:", name: "185xxxx4545" }
            ]
          }
        ],
        [
          {
            id: '03',
            companyName: "XXXXXXXXXXXXXX有限公司",
            members: [
              { label: "值班领导:", name: "李明宇" },
              { label: "电话:", name: "157xxxx5454" },
              { label: "值班人员:", name: "王浩" },
              { label: "电话:", name: "185xxxx4545" }
            ]
          },
          {
            id: '04',
            companyName: "XXXXXXXXXXXXXX有限公司",
            members: [
              { label: "值班领导:", name: "李明宇" },
              { label: "电话:", name: "157xxxx5454" },
              { label: "值班人员:", name: "王浩" },
              { label: "电话:", name: "185xxxx4545" }
            ]
          }
        ],
        [
          {
            id: '05',
            companyName: "XXXXXXXXXXXXXX有限公司",
            members: [
              { label: "值班领导:", name: "李明宇" },
              { label: "电话:", name: "157xxxx5454" },
              { label: "值班人员:", name: "王浩" },
              { label: "电话:", name: "185xxxx4545" }
            ]
          }
        ]
      ]
    }),
  },
  {
    url: '/api/safe/infoGroup',
    method: 'get',
    response: () => ({
      code: 200,
      data: {
        guarantee: {
          promise: 18,
          unPromise: 15,
        },
        Catalog: {
          industryTotal: 31,
          memberTotal: 5603
        },
        inspectionGroup: {
          checkTime: 14,
          riskTotal: 14,
          ratifyTotal: 14,
          ratifyRate: '100%'
        },
        companyInfoGroup: {
          certitiedFirm: 18,
          uncertifiedFirm: 15,
          else: 13
        },
        importantGroup: {
          extraDangerSource: 115,
          chemistry: 4,
          chemistryTechnoloy: 39
        }
      }
    }),
  },
];
